﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using DBLibrary;
using System.Web.Security;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class RegisterWebService : System.Web.Services.WebService {

    [WebMethod]
    public bool IsAdminNameExist(string name)
    {
        bool isExist = PoseidonDBHelper.AdminDB.Exist<AdminDBDetail>(new DBParam("AdminName", name));
        return isExist;
    }
}
